﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DataGridViewTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            for(int i=1;i<10;i++)
            {
                DataGridViewRow row = new DataGridViewRow();
                row.Cells[0].Value = (i * 10 + 1).ToString();
                row.Cells[1].Value = (i * 10 + 2).ToString();
                row.Cells[1].Value = (i * 10 + 3).ToString();
                row.Cells[1].Value = (i * 10 + 4).ToString();
                row.Cells[1].Value = (i * 10 + 5).ToString();
                this.dataGridView1.Rows.Add(row);
            }
            
        }
    }
}
